<?php

namespace Core;

/**
 * Description of Controller
 *
 * @author Admin
 */
class Controller extends \Core\Base\Controller
{
	protected $_userInfo = array();
	protected $_lang = '';


	public function __construct()
	{
		parent::__construct();
		
		$auth = new \Core\Session('auth');
		
		$this->_userInfo = $auth->info;
		$this->userInfo = $this->_userInfo;
		
		$this->_lang = \Core\Langs::getLang();
		$this->lang = $this->_lang;
	}
	
	/**
	 * Befor dispatch layout
	 */
	protected function _preDispatch()
	{
		parent::_preDispatch();
	}
	
	/**
	 * Dispatch layout
	 */
	protected function _init()
	{
		parent::_init();
	}
	
	/**
	 * After dispatch layout
	 */
	protected function _postDispatch()
	{
		parent::_postDispatch();
	}
}
